<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BackendJobeetJobForm
 *
 * @author Vero
 */
class BackendJobeetJobForm extends JobeetJobForm {

    //put your code here

    public function configure() {
        parent::configure();

        $this->widgetSchema['logo'] = new sfWidgetFormInputFileEditable(array(
                    'label' => 'Company logo',
                    'file_src' => '/uploads/jobs/' . $this->getObject()->getLogo(),
                    'is_image' => true,
                    'edit_mode' => !$this->isNew(),
                    'template' => '<div>%file%<br />%input%<br />%delete% %delete_label%</div>',
                ));
    }

    protected function removeFields() {
        unset(
                $this['created_at'], $this['updated_at'], $this['token']
        );
    }

}

?>
